<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="inner/head.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<%	
	if(session.getAttribute("user")==null){		
		response.sendRedirect(request.getContextPath()+"/login.jsp");
		return;
	}
%>
<link href="${basepath}/res/image/skin.css" rel="stylesheet" type="text/css">
<style type="text/css">
	body {
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
	}
	iframe {width:100%;height:100%;border:0px;}
	.STYLE1 {font-size: 12px;color: #000000;}
	.STYLE5 {font-size: 12}
	.STYLE7 {font-size: 12px; color: #FFFFFF; }
	.STYLE7 a{font-size: 12px; color: #FFFFFF; }
	a img {border:none;}
</style>
<script>
	$(document).ready(function() {
      	var clientHeight = document.documentElement.clientHeight-140;
		var div = $("#optarea");
		div.attr("style", "height:"+clientHeight+"px");
  	});
  	function userdetail(){
  		main.location.href="${basepath}/userinfo?m=detail&id=${user.id}";
  	}
  	
  	function updatepassword(){
  	
  		main.location.href="${basepath}/userinfo?m=findById&id=${user.id}&_url=inner/admin/userinfo/updatepassword.jsp";
  		
  	}
  	
  	function logout(){
  		jConfirm("确认要执行操作吗？",null,function(r) {
			if(r) {
  			window.location.href="${basepath}/userinfo?m=logout";
  			}
		});
  	}
</script>
</head>
<body>
<div id="optarea" >
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	  <td height="57" background="${basepath}/res/image/main_03.gif">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
     	    <td width="378" height="57" background="${basepath}/res/image/main_01.gif">&nbsp;</td>
            <td>&nbsp;</td>
            <td width="281" valign="bottom">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="33" height="27"><img src="${basepath}/res/image/main_05.gif" width="33" height="27" /></td>
                  <td width="248" background="${basepath}/res/image/main_06.gif">
                    <table width="225" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="17"><div align="right"><a href="javascript:updatepassword();"><img src="${basepath}/res/image/pass.gif" width="69" height="17" title="修改密码"/></a></div></td>
                        <td><div align="right"><a href="javascript:userdetail();"><img src="${basepath}/res/image/user.gif" width="69" height="17" title="用户信息"/></a></div></td>
                        <td><div align="right"><a href="javascript:logout();" target="_parent"><img src="${basepath}/res/image/quit.gif" width="69" height="17" title="退出系统"/></a></div></td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
      	  </tr>
        </table>
	  </td>
    </tr>
    <tr>
      <td height="40" background="${basepath}/res/image/main_10.gif">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
            <td width="194" height="40" background="${basepath}/res/image/main_07.gif">&nbsp;</td>
            <td>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="21"><img src="${basepath}/res/image/main_13.gif" width="19" height="14" /></td>
                  <td width="35" class="STYLE7"><div align="center"><a href="main.html" target="rightFrame">首页</a></div></td>
                  <td width="21" class="STYLE7"><img src="${basepath}/res/image/main_15.gif" width="19" height="14" /></td>
                  <td width="35" class="STYLE7"><div align="center"><a href="javascript:history.go(-1);">后退</a></div></td>
                  <td width="21" class="STYLE7"><img src="${basepath}/res/image/main_17.gif" width="19" height="14" /></td>
                  <td width="35" class="STYLE7"><div align="center"><a href="javascript:history.go(1);">前进</a></div></td>
                  <td width="21" class="STYLE7"><img src="${basepath}/res/image/main_19.gif" width="19" height="14" /></td>
                  <td width="35" class="STYLE7"><div align="center"><a href="javascript:window.location.reload();">刷新</a></div></td>
                  <td>&nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td height="30" background="${basepath}/res/image/main_31.gif">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="8" height="30"><img src="${basepath}/res/image/main_28.gif" width="8" height="30" /></td>
            <td width="147" background="${basepath}/res/image/main_29.gif">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="24%">&nbsp;</td>
                  <td width="43%" height="20" valign="bottom" class="STYLE1">管理菜单</td>
                  <td width="33%">&nbsp;</td>
                </tr>
              </table>
            </td>
            <td width="39"><img src="${basepath}/res/image/main_30.gif" width="39" height="30" /></td>
            <td>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="20" valign="bottom"><span class="STYLE1">当前登录用户：${user.username } &nbsp;</span></td>
                  <td valign="bottom" class="STYLE1"><div align="right"></div></td>
                </tr>
              </table>
            </td>
            <td width="17"><img src="${basepath}/res/image/main_32.gif" width="17" height="30" /></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  	<tr valign="top">
	  <!-- 左侧菜单栏 -->
	  <td width="8" bgcolor="#353c44">&nbsp;</td>
	  <td width="147px" height="100%">
		<iframe scrolling="no" frameborder="0" allowtransparency="true" src="${basepath}/inner/admin/left.jsp" id="left"></iframe>
	  </td>
	  <td width="10" bgcolor="#add2da">&nbsp;</td>
	  <td height="100%">
		<iframe scrolling="no" frameborder="0" allowtransparency="true" src="${basepath}/inner/welcome.jsp" id="main"></iframe>
	  </td>
	   <td width="8" bgcolor="#353c44">&nbsp;</td>
	</tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td background="${basepath}/res/image/main_71.gif"  style="line-height:11px; table-layout:fixed" width="165">&nbsp;</td>
      <td background="${basepath}/res/image/main_72.gif"  style="line-height:11px; table-layout:fixed">&nbsp;</td>
      <td background="${basepath}/res/image/main_74.gif"  style="line-height:11px; table-layout:fixed" width="17">&nbsp;</td>
  	</tr>
  </table>
</div>
</body>
